/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bbddmovil;

/**
 *
 * @author I
 */
public class Companyia {
    
    
private String companyia;
private Movil movil;

public Companyia (String companyia) {
this.companyia=companyia;
this.movil=null;
}

public Movil getMovil() {
return movil;
}

public void setMovil(Movil movil) {
this.movil = movil;
}

public String getCompanyia() {
return companyia;
}

    @Override
public String toString() {
return companyia+"["+movil+"]";
}
}
